var t = require("../../api.js"), a = getApp();

Page({
    data: null,
    changeName: function (e) {
        // sent data change to view
        this.setData({
            name: 'MINA'
        })
    },
    onLoad: function () {

        a.pageOnLoad(this);
        var o=this;

        console.log(123);
        a.request({
            url: t.order.delivery_date,
            data: {},
            success: function (t) {
                console.log(t);
                0 == t.code && o.setData({delivery_date: t.data});
            },
            complete: function () {
                wx.hideLoading()
            }
        });

    }

    ,radioChange: function(e) {
        console.log('radio发生change事件，携带value值为：', e.detail.value);
        wx.setStorageSync("delivery_date",e.detail.value);
        wx.setStorageSync("delivery_date_history",Date.parse(new Date()));
        wx.navigateBack();
    }
});